home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
QRZ! Ham Radio 8
/
QRZ Ham Radio Callsign Database - Volume 8.iso
/
mac
/
files
/
t_sys5
/
unixcpio.gz
/
unixnet.cpio
/
files.c
< prev
next >
Wrap
C/C++ Source or Header
|
1994-07-11
|
4KB
|
116 lines
/* System-dependent definitions of various files, spool directories, etc */
#include "global.h"
#include "config.h"
#if (defined(__TURBOC__) || defined(LATTICE) || defined(MAC) || defined(ATARI_ST))
/* These compilers require special open modes when reading binary files
*
* "The single most brilliant design decision in all of UNIX was the
* choice of a SINGLE character as the end-of-line indicator" -- M. O'Dell
*
* "Whoever picked the end-of-line conventions for MS-DOS and the Macintosh
* should be shot!" -- P. Karn's corollary to O'Dells' declaration
*
* Index definitions for this array are in global.h
*/
char *binmode[] = {
"rb", /* Read binary */
"wb", /* Write binary */
"ab" /* Append binary */
};
#else
/* fopen modes for binary files under Aztec -- same as UNIX */
char *binmode[] = {
"r", /* Read */
"w", /* Write */
"a" /* Append */
};
#endif
#ifdef ATARI_ST
char *startup = "\\net.rc"; /* Initialization file */
char *userfile = "\\ftpusers"; /* Authorized FTP users */
char *hosts = "\\hosts.net"; /* Unix style host table */
char *mailspool = "\\spool\\mail"; /* Incoming mail */
char *mailqdir = "\\spool\\mqueue"; /* Outgoing mail spool */
char *mailqueue = "\\spool\\mqueue\\*.wrk"; /* Outgoing mail work files */
char *routeqdir = "\\spool\\rqueue"; /* Queue for router */
char *alias = "\\alias"; /* The alias file */
#ifdef _FINGER
char *fingersuf = ".txt"; /* Text info for finger command */
char *fingerpath = "\\finger\\"; /* Path to finger info files */
#endif
#endif
#ifdef MSDOS || __TURBOC__
char *startup = "/autoexec.net"; /* Initialization file */
char *userfile = "/ftpusers"; /* Authorized FTP users and passwords */
char *hosts = "/hosts.net"; /* Network host table */
char *mailspool = "/spool/mail"; /* Incoming mail */
char *mailqdir = "/spool/mqueue"; /* Outgoing mail spool */
char *mailqueue = "/spool/mqueue/*.wrk";/* Outgoing mail work files */
char *routeqdir = "/spool/rqueue"; /* queue for router */
char *alias = "/alias"; /* the alias file */
#ifdef _FINGER
char *fingersuf = ".txt"; /* Text info for finger command */
char *fingerpath = "/finger/"; /* Path to finger info files */
#endif
#endif
#ifdef UNIX
/*
* Base names for files -- environment variables NETHOME and NETSPOOL
* are used to specify the precise path.
*/
char *netexe = "net"; /* where the binary lives; for reset */
char *startup = "startup.net"; /* Initialization file */
char *config = "config.net"; /* Device configuration list */
char *userfile = "ftpusers";
char *hosts = "hosts.net";
char *mailspool = "mail";
char *mailqdir = "mqueue";
char *mailqueue = "mqueue/*.wrk";
char *routeqdir = "rqueue"; /* queue for router */
char *alias = "aliases"; /* the alias file */
#ifdef _FINGER
char *fingersuf = ".txt"; /* Text info for finger command */
char *fingerpath = "finger/"; /* Path to finger info files */
#endif
#endif
#ifdef AMIGA
char *startup = "TCPIP:net.start";
char *config = "TCPIP:config.net"; /* Device configuration list */
char *userfile = "TCPIP:ftpusers";
char *hosts = "TCPIP:hosts.net";
char *mailspool = "TCPIP:spool/mail";
char *mailqdir = "TCPIP:spool/mqueue";
char *mailqueue = "TCPIP:spool/mqueue/*.wrk";
char *routeqdir = "TCPIP:spool/rqueue"; /* queue for router */
char *alias = "TCPIP:alias"; /* the alias file */
#ifdef _FINGER
char *fingersuf = ".txt"; /* Text info for finger command */
char *fingerpath = "TCPIP:finger/"; /* Path to finger info files */
#endif
#endif
#ifdef MAC
char *startup ="Mikes Hard Disk:net.start";
char *config = "Mikes Hard Disk:config.net"; /* Device configuration list */
char *userfile = "Mikes Hard Disk:ftpusers";
char *hosts = "Mikes Hard Disk:hosts.net";
char *mailspool = "Mikes Hard Disk:spool:mail:";
char *mailqdir = "Mikes Hard Disk:spool:mqueue:";
char *mailqueue = "Mikes Hard Disk:spool:mqueue:*.wrk";
char *routeqdir = "Mikes Hard Disk:spool/rqueue:"; /* queue for router */
char *alias = "Mikes Hard Disk:alias"; /* the alias file */
#ifdef _FINGER
/* is this for real? */
char *fingersuf = ".txt"; /* Text info for finger command */
char *fingerpath = "Mikes Hard Disk:finger/"; /* Path to finger info files */
#endif
#endif